LEADTOOLS Image Processing (Leadtools.ImageProcessing.Color assembly)

RemapHueCommand Constructor(Int32[],Int32[],Int32[],Int32[],Int32)

Show in webframe







Lookup table that identifies which values in the hueTable, saturationTable and valueTable are valid. If Mask[i] is non-zero, then hueTable, saturationTable and valueTable are to be used. If Mask[i] is 0 then hueTable, saturationTable and valueTable are ignored. If Mask is null, all entries in the hueTable, saturationTable and valueTable are used.
Hue look up table. If the Mask table value for a particular pixel hue is non-zero, then the hue is changed to the corresponding entry in hueTable. For example, if a pixel value has a hue of 85 and Mask[85] is non-zero, the hue is changed to hueTable[85]. If hueTable is null, the hue of each pixel is unchanged.
Saturation look up table. If the Mask table value for a particular pixel hue is non-zero, then the saturation is changed to the corresponding entry in saturationTable. For example, if a pixel value has a hue of 85 and Mask[85] is non-zero, the saturation is changed to saturationTable[85]. If hueTable is null, the saturation is changed to saturationTable[85]. If saturationTable is null, the saturation of each pixel is unchanged.
Value look up table. If the Mask table value for a particular pixel hue is non-zero, then the value is changed to the corresponding entry in valueTable. For example, if a pixel value has a hue of 85 and Mask[85] is non-zero, the value is changed to valueTable[85]. If hueTable is null, the value is changed to ValueTable[85]. If valueTable is null, the value of each pixel is unchanged.
Length of the lookup table. Possible values are 65536 for 16-bit image, 4096 for 12-bit image, 256 for 8-bit image
Initializes a new RemapHueCommand class object with explicit parameters.
Syntax
public RemapHueCommand( 
   int[] mask,
   int[] hueTable,
   int[] saturationTable,
   int[] valueTable,
   int lookUpTableLength
)
'Declaration
 
Public Function New( _
   ByVal mask() As Integer, _
   ByVal hueTable() As Integer, _
   ByVal saturationTable() As Integer, _
   ByVal valueTable() As Integer, _
   ByVal lookUpTableLength As Integer _
)
'Usage
 
Dim mask() As Integer
Dim hueTable() As Integer
Dim saturationTable() As Integer
Dim valueTable() As Integer
Dim lookUpTableLength As Integer
 
Dim instance As New RemapHueCommand(mask, hueTable, saturationTable, valueTable, lookUpTableLength)
public RemapHueCommand( 
   int[] mask,
   int[] hueTable,
   int[] saturationTable,
   int[] valueTable,
   int lookUpTableLength
)
- (id)initWithMask:(const unsigned int*)mask 
          hueTable:(const unsigned int*)hueTable 
   saturationTable:(const unsigned int*)saturationTable 
        valueTable:(const unsigned int*)valueTable 
 lookUpTableLength:(unsigned int)lookUpTableLength;
            
public RemapHueCommand(
   int[] mask, 
   int[] hueTable, 
   int[] saturationTable, 
   int[] valueTable, 
   int lookUpTableLength
)
            
function RemapHueCommand( 
   mask ,
   hueTable ,
   saturationTable ,
   valueTable ,
   lookUpTableLength 
)
public:
RemapHueCommand( 
   array<int>^ mask,
   array<int>^ hueTable,
   array<int>^ saturationTable,
   array<int>^ valueTable,
   int lookUpTableLength
)

Parameters

mask
Lookup table that identifies which values in the hueTable, saturationTable and valueTable are valid. If Mask[i] is non-zero, then hueTable, saturationTable and valueTable are to be used. If Mask[i] is 0 then hueTable, saturationTable and valueTable are ignored. If Mask is null, all entries in the hueTable, saturationTable and valueTable are used.
hueTable
Hue look up table. If the Mask table value for a particular pixel hue is non-zero, then the hue is changed to the corresponding entry in hueTable. For example, if a pixel value has a hue of 85 and Mask[85] is non-zero, the hue is changed to hueTable[85]. If hueTable is null, the hue of each pixel is unchanged.
saturationTable
Saturation look up table. If the Mask table value for a particular pixel hue is non-zero, then the saturation is changed to the corresponding entry in saturationTable. For example, if a pixel value has a hue of 85 and Mask[85] is non-zero, the saturation is changed to saturationTable[85]. If hueTable is null, the saturation is changed to saturationTable[85]. If saturationTable is null, the saturation of each pixel is unchanged.
valueTable
Value look up table. If the Mask table value for a particular pixel hue is non-zero, then the value is changed to the corresponding entry in valueTable. For example, if a pixel value has a hue of 85 and Mask[85] is non-zero, the value is changed to valueTable[85]. If hueTable is null, the value is changed to ValueTable[85]. If valueTable is null, the value of each pixel is unchanged.
lookUpTableLength
Length of the lookup table. Possible values are 65536 for 16-bit image, 4096 for 12-bit image, 256 for 8-bit image
Example
Refer to RemapHueCommand.
Requirements

Target Platforms

See Also

Reference

RemapHueCommand Class
RemapHueCommand Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.